Optimal. Leaf size=22 \[ \cosh ^{-1}(x)-\frac {\sqrt {x-1} \sqrt {x+1}}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.00, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {97, 52} \begin {gather*} \cosh ^{-1}(x)-\frac {\sqrt {x-1} \sqrt {x+1}}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 97
Rubi steps
\begin {align*} \int \frac {\sqrt {-1+x} \sqrt {1+x}}{x^2} \, dx &=-\frac {\sqrt {-1+x} \sqrt {1+x}}{x}+\int \frac {1}{\sqrt {-1+x} \sqrt {1+x}} \, dx\\ &=-\frac {\sqrt {-1+x} \sqrt {1+x}}{x}+\cosh ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.02, size = 52, normalized size = 2.36 \begin {gather*} \frac {-\sqrt {x+1} (x-1)-2 \sqrt {1-x} x \sin ^{-1}\left (\frac {\sqrt {1-x}}{\sqrt {2}}\right )}{\sqrt {x-1} x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [B] time = 0.05, size = 48, normalized size = 2.18 \begin {gather*} 2 \tanh ^{-1}\left (\frac {\sqrt {x-1}}{\sqrt {x+1}}\right )-\frac {2 \sqrt {x-1}}{\sqrt {x+1} \left (\frac {x-1}{x+1}+1\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.34, size = 36, normalized size = 1.64 \begin {gather*} -\frac {x \log \left (\sqrt {x + 1} \sqrt {x - 1} - x\right ) + \sqrt {x + 1} \sqrt {x - 1} + x}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.32, size = 40, normalized size = 1.82 \begin {gather*} -\frac {8}{{\left (\sqrt {x + 1} - \sqrt {x - 1}\right )}^{4} + 4} - \frac {1}{2} \, \log \left ({\left (\sqrt {x + 1} - \sqrt {x - 1}\right )}^{4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.01, size = 44, normalized size = 2.00 \begin {gather*} \frac {\sqrt {x -1}\, \sqrt {x +1}\, \left (x \ln \left (x +\sqrt {x^{2}-1}\right )-\sqrt {x^{2}-1}\right )}{\sqrt {x^{2}-1}\, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.41, size = 27, normalized size = 1.23 \begin {gather*} -\frac {\sqrt {x^{2} - 1}}{x} + \log \left (2 \, x + 2 \, \sqrt {x^{2} - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.00, size = 109, normalized size = 4.95 \begin {gather*} 4\,\mathrm {atanh}\left (\frac {\sqrt {x-1}-\mathrm {i}}{\sqrt {x+1}-1}\right )-\frac {\sqrt {x-1}-\mathrm {i}}{4\,\left (\sqrt {x+1}-1\right )}-\frac {\frac {5\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^2}{4\,{\left (\sqrt {x+1}-1\right )}^2}+\frac {1}{4}}{\frac {{\left (\sqrt {x-1}-\mathrm {i}\right )}^3}{{\left (\sqrt {x+1}-1\right )}^3}+\frac {\sqrt {x-1}-\mathrm {i}}{\sqrt {x+1}-1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x - 1} \sqrt {x + 1}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________